<?php
function checkPwd()
{
	$password = I('post.password');
	if (strlen($password) >= 6) {
		return true;
	} else {
		return false;
	}
}
function alertMes($mes, $url = '')
{
	if ($url != '') {
		exit("<script>alert('{$mes}');window.location='{$url}';</script>");
	} else {
		exit("<script>alert('{$mes}');history.back();</script>");
	}
}
